<%@page import="common.Var"%>
<%@page import="com.ks.entity.User"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>个人信息</title>
</head>
<body>
	<%
		User user = (User) request.getAttribute(Var.USER_INFO);
		String pass = ((User)request.getSession().getAttribute(Var.USER_INFO)).getPassword();
	%>
		<%="PassFrom Session:"+pass %>
	<h3>
		用户名：<%=user.getUsername()%><br /> 年龄：<%=user.getAge()%><br /> 地址：<%=user.getAddress()%><br />
		头像：<%=user.getImg()%><br />
	</h3>
	<form action="/userServlet" method="post">
		用户名：<input type="text" name="username" readonly="readonly"
			value=<%=user.getUsername()%> /><br /> 密码：<input type="password"
			name=password value=<%=user.getPassword()%> /> <br />年龄：<input
			type="text" name="age" value=<%=user.getAge()%>><br /> 地址：<input
			type="text" name="address" value=<%=user.getAddress()%>> <br />头像：<input
			type="text" name="img" value=<%=user.getImg()%>><br /> <input
			type="hidden" name="method" value="updateUser"> <input
			type="submit" value="修改">
	</form>
	<h3><a href="/jsp/welcome.jsp">返回</a></h3>
	


</body>
</html>